package com.cdk8s.tkey.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdk8s.tkey.server.pojo.bo.sys.TSystemSob;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author zlc
 * @date 9.5
 */
public interface ISystemSobMapper extends BaseMapper<TSystemSob> {

    @Select("select s.id, s.sob_name from t_system_sob s, t_system_usersob us " +
            "where s.id = us.sob and us.is_delete = 0 and us.account = #{account}")
    List<TSystemSob> qrySobs(@Param("account") String account);
}
